import java.util.Scanner;


public class HardMonster extends Monster
{
	static int health = 30;
	static int str = 2;
	static int exp = 30;
	
	public static void expdrop()
	{
		Player.exp += HardMonster.exp;
	}

	public static void death()
	{
		System.out.println("The Hard Monster falls to the ground not moving!");
		expdrop();
	}
	
	public static void attackplayer()
	{
		System.out.println("The beast slashes you!");
		Player.health -= HardMonster.str;
		HardMonster.health = 30;
	}
	
	
	public static void hardmonsterfight()
	{
		do
		{
			@SuppressWarnings("resource")
			Scanner attack = new Scanner(System.in);
			Main.a = attack.nextInt();
					if(Main.x == 1)
					{
						PlayerBow.attackhardmonster();
						if(HardMonster.health <= 0)
						{
							HardMonster.death();
							Main.a = 0;
						}
						
						else if(HardMonster.health > 0)
						{
							HardMonster.attackplayer();
						}
						
						if(Player.exp >= 50)
						{
							Main.levelup();
						}
						
					    if(PlayerBow.health <= 0)
						{
							Main.Gameover();
							break;
						}
						
					}
					if(Main.x == 2)
					{
						PlayerSword.attackhardmonster();
						if(HardMonster.health <= 0)
						{
							HardMonster.death();
							Main.a = 0;
						}
						
						else if(HardMonster.health > 0)
						{
							HardMonster.attackplayer();
						}
						
						if(Player.exp >= 50)
						{
							Main.levelup();
						}
						
					    if(PlayerBow.health <= 0)
						{
							break;
						}
					}
		}while(Main.a == 1);
	}

}
